<form class="form-inline" method="get">

    <div class="form-group col-xs-3">
        <div class="col-xs-12">
            <span style="">对话时间</span>{include file="public/dateRangePicker" picker-name="time_range" /}
        </div>
    </div>

    <div class="form-group col-xs-2">
        <div class="col-xs-12">
            <button type="submit" class="btn btn-success">
                搜索
            </button>


        </div>
    </div>
</form>

<hr>

<table class="table table-striped">
    <thead>
    <tr>
        <td>会员</td>
        <td>对话内容</td>
        <td>对话时间</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    {volist name="list" id="item"}
    <tr>
        <td>
            <label class="label label-danger">{$item.smobile}</label>
            <label class="label label-info">{$item.sname}</label>
            <label class="label label-success">ID：{$item.send_uid}</label>
            <a href="javascript:void(0);" onclick="ejectImg('{$item.savatar|default='/static/default_avatar.png'}','{$item.sname}头像');">
                <img src="{$item.savatar|default='/static/default_avatar.png'}" style="width: 60px;height: 60px;">
            </a>
        </td>
        <td>
            <?php echo show_message_content($item['content'],$item['ty'],$item['savename'],$item['savebyte']);?>
        </td>
        <td>{$item.ctime|show_datetime}</td>
        <td>
            <div class="btn-group">
                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    操作
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu">
                    <li>
                        <a href="javascript:void(0)" data-toggle="confirm"
                           data-title="删除此条对话"
                           data-content="确认删除？此次操作将删除此条对话记录，不可恢复，请谨慎操作！"
                           data-url="{:url('remove',array('type'=>2,'deltag'=>$item.id))}">
                            删除对话
                        </a>
                    </li>

                    <li role="separator" class="divider"></li>
                </ul>
            </div>
        </td>
    </tr>
    {/volist}
    </tbody>
</table>

<div class="row">
    <div class="col-xs-12" style="text-align: right;">
        {$list->render()}
    </div>
</div>

<!--<script src="__PUBLIC__/vendors/select2/js/select2.min.js"></script>-->
<!--<script type="application/javascript">-->
    <!--$(function () {-->

        <!--//获取分类-->
        <!--$("#dutise-selector").select2({-->
            <!--placeholder: "选择职务",-->
            <!--allowClear: true-->
        <!--});-->
    <!--});-->
<!--</script>-->
